<template>
    <div>
        <h1>123456======{{val}}</h1>
    </div>
</template>
<script>
import {bus} from '@/bus/index.js'
export default {
    data() {
        return {
            val:''
        }
    },
   created() {
       bus.$on('fn',val=>{
           console.log(val);
           this.val=val
       })
   },
}
</script>